<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>银行卡管理</title>
    <script src="https://cdn.tailwindcss.com/3.3.3"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
    <style>
        body {
            font-family: 'PingFang SC', sans-serif;
            background-color: #f5f7fa;
        }
        .bank-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .bank-card-2 {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
        }
        .bank-card-3 {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }
        .card-number {
            font-family: 'Courier New', monospace;
            letter-spacing: 2px;
        }
        .card-item {
            transition: all 0.3s ease;
        }
        .card-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        }
        .delete-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            opacity: 0;
            transition: all 0.3s ease;
        }
        .card-item:hover .delete-btn {
            opacity: 1;
        }
        .add-card {
            border: 2px dashed #cbd5e1;
            background: white;
            transition: all 0.3s ease;
        }
        .add-card:hover {
            border-color: #3b82f6;
            background: #f8fafc;
        }
    </style>
</head>
<body class="max-w-md mx-auto pb-20">
    <!-- 顶部导航 -->
    <header class="bg-white py-4 px-6 shadow-sm">
        <div class="flex items-center relative">
            <a href="member-center.html" class="text-gray-600 absolute left-0 z-10">
                <i class="fas fa-chevron-left text-lg"></i>
            </a>
            <h1 class="text-xl font-semibold text-center flex-1">银行卡管理</h1>
            <a href="#" class="text-blue-500 text-sm absolute right-0 z-10">帮助</a>
        </div>
    </header>

    <!-- 银行卡统计 -->
    <div class="px-4 pt-4">
        <div class="bg-white rounded-xl p-4 shadow-sm">
            <div class="flex justify-between items-center">
                <div>
                    <p class="text-sm text-gray-500">已绑定银行卡</p>
                    <p class="text-2xl font-bold text-gray-800">4张</p>
                </div>
                <div class="text-right">
                    <p class="text-sm text-gray-500">默认卡</p>
                    <p class="text-sm font-medium text-blue-600">招商银行</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 银行卡列表 -->
    <div class="px-4 mt-4">
        <h3 class="text-lg font-medium text-gray-800 mb-3">我的银行卡</h3>
        
        <!-- 银行卡1 - 招商银行 -->
        <div class="card-item relative mb-4">
            <div class="bank-card rounded-xl p-6 text-white shadow-lg">
                <div class="delete-btn">
                    <i class="fas fa-times text-xs"></i>
                </div>
                <div class="flex justify-between items-start mb-6">
                    <div>
                        <p class="text-sm opacity-90">招商银行</p>
                        <p class="text-lg font-medium">储蓄卡</p>
                    </div>
                    <div class="text-right">
                        <i class="fas fa-credit-card text-2xl opacity-80"></i>
                    </div>
                </div>
                <div class="mb-4">
                    <p class="card-number text-lg font-bold mb-2">**** **** **** 1234</p>
                    <div class="flex justify-between items-center">
                        <div>
                            <p class="text-xs opacity-80">持卡人</p>
                            <p class="text-sm font-medium">张**</p>
                        </div>
                        <div class="text-right">
                            <p class="text-xs opacity-80">有效期</p>
                            <p class="text-sm font-medium">12/25</p>
                        </div>
                    </div>
                </div>
                <div class="flex justify-between items-center">
                    <span class="text-xs opacity-80">默认卡</span>
                    <span class="text-xs opacity-80">VISA</span>
                </div>
            </div>
        </div>

        <!-- 银行卡2 - 工商银行 -->
        <div class="card-item relative mb-4">
            <div class="bank-card-2 rounded-xl p-6 text-white shadow-lg">
                <div class="delete-btn">
                    <i class="fas fa-times text-xs"></i>
                </div>
                <div class="flex justify-between items-start mb-6">
                    <div>
                        <p class="text-sm opacity-90">工商银行</p>
                        <p class="text-lg font-medium">信用卡</p>
                    </div>
                    <div class="text-right">
                        <i class="fas fa-credit-card text-2xl opacity-80"></i>
                    </div>
                </div>
                <div class="mb-4">
                    <p class="card-number text-lg font-bold mb-2">**** **** **** 5678</p>
                    <div class="flex justify-between items-center">
                        <div>
                            <p class="text-xs opacity-80">持卡人</p>
                            <p class="text-sm font-medium">张**</p>
                        </div>
                        <div class="text-right">
                            <p class="text-xs opacity-80">有效期</p>
                            <p class="text-sm font-medium">08/26</p>
                        </div>
                    </div>
                </div>
                <div class="flex justify-between items-center">
                    <span class="text-xs opacity-80">可用额度 ¥50,000</span>
                    <span class="text-xs opacity-80">MasterCard</span>
                </div>
            </div>
        </div>

        <!-- 银行卡3 - 建设银行 -->
        <div class="card-item relative mb-4">
            <div class="bank-card-3 rounded-xl p-6 text-white shadow-lg">
                <div class="delete-btn">
                    <i class="fas fa-times text-xs"></i>
                </div>
                <div class="flex justify-between items-start mb-6">
                    <div>
                        <p class="text-sm opacity-90">建设银行</p>
                        <p class="text-lg font-medium">储蓄卡</p>
                    </div>
                    <div class="text-right">
                        <i class="fas fa-credit-card text-2xl opacity-80"></i>
                    </div>
                </div>
                <div class="mb-4">
                    <p class="card-number text-lg font-bold mb-2">**** **** **** 9012</p>
                    <div class="flex justify-between items-center">
                        <div>
                            <p class="text-xs opacity-80">持卡人</p>
                            <p class="text-sm font-medium">张**</p>
                        </div>
                        <div class="text-right">
                            <p class="text-xs opacity-80">有效期</p>
                            <p class="text-sm font-medium">03/27</p>
                        </div>
                    </div>
                </div>
                <div class="flex justify-between items-center">
                    <span class="text-xs opacity-80">余额 ¥12,580</span>
                    <span class="text-xs opacity-80">UnionPay</span>
                </div>
            </div>
        </div>

        <!-- 添加银行卡 -->
        <div class="add-card rounded-xl p-6 text-center cursor-pointer">
            <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-3">
                <i class="fas fa-plus text-2xl text-gray-400"></i>
            </div>
            <p class="text-lg font-medium text-gray-600">添加银行卡</p>
            <p class="text-sm text-gray-500 mt-1">支持储蓄卡和信用卡</p>
        </div>
    </div>

    <!-- 银行卡操作说明 -->
    <div class="px-4 mt-6 mb-6">
        <div class="bg-blue-50 rounded-xl p-4">
            <h4 class="font-medium text-blue-800 mb-2">银行卡说明</h4>
            <div class="text-sm text-blue-700 space-y-1">
                <p>• 最多可绑定10张银行卡</p>
                <p>• 支持储蓄卡和信用卡绑定</p>
                <p>• 默认卡将优先用于提现和支付</p>
                <p>• 删除银行卡前请确保无进行中的交易</p>
            </div>
        </div>
    </div>
</body>
</html>
